#pragma once

#include "Common.h"

class PageCache
{
public:

	static PageCache* GetInstance()
	{
		return &_sInst;
	}

	Span* NewSpan(size_t size);

	std::mutex _pageMtx;

private:

	SpanList _spanLists[NPAGES];

	PageCache()
	{

	}

	PageCache(const PageCache&) = delete;

	static PageCache _sInst;

};